package com.mryin.performance.mapper;

import com.mryin.performance.pojo.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MRYIN
 * @since 2021-03-08
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     *  通过用户id查询权限
     * @param id
     * @return
     */
    List<Permission> getAllPermissionsByUid(String id);
}
